//
//  CBaseBattleScene.h
//  Monster_Martial_Arts_Version_0
//
//  Created by bk on 13/1/5.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#ifndef Monster_Martial_Arts_Version_0_CBaseBattleScene_h
#define Monster_Martial_Arts_Version_0_CBaseBattleScene_h

#include "cocos2d.h"   
#include "GameState.h"
//#include "CTouchAction.h"

using namespace cocos2d;

const char BACKGROUND_NAME[] = "forest.png";

class CTouchAction;
class CBattleScene : public cocos2d::CCLayer
{
public:
    
    enum
    {
        BACKGROUND_Z_ORDER = 0,
        //BACKGROUND_START_X_AND_Y = 0
    };
    
    ~CBattleScene();
    
    virtual bool init();  
    // there's no 'id' in cpp, so we recommand to return the exactly class pointer
    static cocos2d::CCScene* scene();
    
    void update(float dt);
    
    // a selector callback
    //virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	//virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
    virtual void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);
    
    CREATE_FUNC(CBattleScene);
    
protected:    
    
private:
    
    CCSprite*       m_BackGroundSprite;
    
    CTouchAction*   m_TouchAction;
};



#endif
